home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Main.bin / ThreadDeath.java < prev    next >
Text File  |  1998-09-22  |  2KB  |  43 lines

  1. /*
  2.  * @(#)ThreadDeath.java    1.8 98/07/01
  3.  *
  4.  * Copyright 1995-1998 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  * 
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14.  
  15. package java.lang;
  16.  
  17. /**
  18.  * An instance of <code>ThreadDeath</code> is thrown in the victim 
  19.  * thread when the <code>stop</code> method with zero arguments in 
  20.  * class <code>Thread</code> is called. 
  21.  * <p>
  22.  * An application should catch instances of this class only if it 
  23.  * must clean up after being terminated asynchronously. If 
  24.  * <code>ThreadDeath</code> is caught by a method, it is important 
  25.  * that it be rethrown so that the thread actually dies. 
  26.  * <p>
  27.  * The top-level error handler does not print out a message if 
  28.  * <code>ThreadDeath</code> is never caught. 
  29.  * <p>
  30.  * The class <code>ThreadDeath</code> is specifically a subclass of 
  31.  * <code>Error</code> rather than <code>Exception</code>, even though 
  32.  * it is a "normal occurrence", because many applications 
  33.  * catch all occurrences of <code>Exception</code> and then discard 
  34.  * the exception. 
  35.  *
  36.  * @author unascribed
  37.  * @version 1.8, 07/01/98
  38.  * @see     java.lang.Thread#stop()
  39.  * @since   JDK1.0
  40.  */
  41.  
  42. public class ThreadDeath extends Error {}
  43.